<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
    <foreach name="afields" item="vo">
        <if condition="$vo">
            <th>{$vo}</th>
        </if>
    </foreach>
    <th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
    <tr data-key="{$vo.id}">
    <foreach name="afields" item="title" key="field">
        <if condition="($title) and ($field eq 'telphone')">
            <td><a class="lnk-dialout" href="{$vo.telphone}" data-value="{$vo.telphone}" title="拨打此电话"><i class="fa fa-phone-square fa-fw" style="color:#376EA7"></i>{$vo.telphone}</a></td>
            <elseif condition="$title" />
            <td>{$vo[$field]}</td>
        </if>
    </foreach>
    <td>
        <a href="{:U('Customer/restore_customer','id='.$vo['id'])}" class="xsui-btn ui-state-default lnk-remove" data-id="{$vo.id}" title="还原 {$vo.name}" data-options="confirm_message:'您确定要恢复该记录吗?'"><i class="fa fa-reply fa-fw"></i>还原</a>
    <if condition="equal_permission('KH_KHGL_SCKH')">
        <a href="{:U('Customer/delete_customer','id='.$vo['id'])}" class="xsui-btn ui-state-default lnk-remove" data-options="confirm_message:'您确定要彻底删除该记录吗?\n删除后不可恢复!'" data-id="{$vo.id}" title="彻底删除 {$vo.name}"><i class="fa fa-remove fa-fw"></i>彻底删除</a>
        </a>
        </td>
        </tr>
</foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>